/**
 * Created by yanghaibo on 2016/10/25.
 */
ActivityDetailStoreListController = function () {

    // 获取订单详情
    this.getActivityShopList = function(outBizNo) {
        var serverUrl = App.serverUrl +　"merchantApp/activity/queryActivitySuitShops.do";

        var sucFunc = function (result) {
            if (result && result.success) {
                // 服务器返回成功
                var resultObj = result.resultObject;
                if (resultObj && resultObj.length) {
                    $("#activityDetailStoreListUl").parent().css("display", "block");
                    CommonUtil.render($("#activityDetailStoreListUl"), "activityDetailStoreListTpl", {data: resultObj})
                } else {
                    $("#activityDetailStoreListUl").parent().css("display", "none");
                    CommonUtil.showElement("#activityDetailStoreListPage .no-data-wrap")
                }
            } else {
                DialogUtil.dialogWarn(result.msg);
            }
        }

        CommonUtil.sendJsonpRequest({
            url: serverUrl,
            params: {outBizNo: outBizNo},
            success: sucFunc
        });

    };
};